﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.Core.Result
{
    /// <summary>
    /// 基础结果
    /// </summary>
    public class BaseResult
    {
        public BaseResult()
        {
            success = false;
            errorcode = "E0000";
            //p_status = "0";
        }
        /// <summary>
        /// 数据
        /// </summary>
        public object data { get; set; }
        /// <summary>
        /// 分页信息
        /// </summary>
        public object page { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 状态 默认false
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 错误代码
        /// </summary>
        public string errorcode { get; set; }
        
    }

    public class ProceduresResult
    {
        /// <summary>
        /// 数据处理状态
        /// </summary>
        public object p_status { get; set; }
        /// <summary>
        /// 数据错误消息
        /// </summary>
        public object p_message { get; set; }
        /// <summary>
        /// 数据返回结果
        /// </summary>
        public object p_result { get; set; }
    }
}
